<template>
    <div>
        <h1>后台数据</h1>
        <el-table :data="tableData" style="width: 100%" border height="500px" @row-click="goDetail">
            <el-table-column prop="stu_id" label="学号" width="100">
            </el-table-column>
            <el-table-column prop="stu_name" label="姓名" width="100">
            </el-table-column>
            <el-table-column prop="stu_sex" label="性别" width="100">
            </el-table-column>
            <el-table-column prop="stu_date" label="出生日期" width="180">
                <template slot-scope="scope">
                    <!-- <p></p> -->
                    <p>{{ scope.$index }}</p>
                    <p>{{ $moment(scope.row.stu_date).format("YYYY-MM-DD") }}</p>
                </template>
            </el-table-column>
            <el-table-column prop="stu_head_img" label="头像">
                <template slot-scope="scope">
                    <el-image style="width: 100px; height: 100px" :src="scope.row.stu_head_img"
                        :preview-src-list="srcList" @click="bigImage(scope.row.stu_head_img)">
                    </el-image>
                </template>
            </el-table-column>



        </el-table>
    </div>
</template>

<script>
import { req_code_stu_info } from "@/api/stuInfo.js";
export default {
    data() {
        return {
            tableData: [],

        }
    },
    async mounted(){
        // this.getData(this.currentPage);
        let result = await req_code_stu_info(1)
        console.log(result);
    }

}

</script>

<style lang="scss" scoped>

</style>